Noise reduction device for reducing noise in image using blackout image, electronic camera, program, and method

ABSTRACT

The noise reduction device includes an image storage unit, a blackout image processing unit, and a noise processing unit. The image storage unit captures image data obtained by imaging a field with an image sensor, and stores the image data therein. The blackout image processing unit captures blackout image data obtained by imaging by the image sensor that is shaded, and extracts a specific noise component of the blackout image data. The noise processing unit reduces a noise in the image data based on the specific noise component of the blackout image data.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a Division of application Ser. No. 11/133,285, filed May 20,2005. The disclosure of the prior application is hereby incorporated byreference herein in its entirety.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a noise reduction device and a noisereduction method that reduce a noise in image data by using a blackoutimage that is taken while an image sensor is shaded.

The present invention also relates to an electronic camera incorporatingthe noise reduction device.

The present invention also relates to a program that makes a computeroperate as the noise reduction device.

2. Description of the Related Art

In general, a fixed pattern noise appears in image data when the imagedata is taken by an electronic camera during long exposure.

Japanese Unexamined Patent Application Publication No. 2000-125204 (seeclaims 1 and 2, for example) discloses a device for removing the abovefixed pattern noise. In this conventional device, image data taken in anormal manner and blackout image data taken while a shutter of theelectronic camera is closed are prepared first. This conventional devicesubtracts the blackout image data from the normally taken image data,thereby removing the fixed pattern noise in a common mode.

However, the blackout image data taken during long exposure includes arandom noise, in addition to the fixed pattern noise. The random noiseis added in a reversed mode to the normally taken image data in theaforementioned subtraction by the conventional device. Thus, there is aproblem in that the random noise in the image data is increased.

Moreover, it is necessary to make charging time of the normally takenimage data and charging time of the blackout image data equal to eachother in the conventional device in order to make the fixed patternnoises in both the normally taken image data and the blackout image dataequal to each other. Thus, in a case of a 10-minute exposure, forexample, it takes further 10 minutes to obtain the blackout image data.During that period, shooting by the electronic camera cannot beperformed. Thus, a valuable opportunity for a photograph may be missed.

Furthermore, memory consumption is increased in the conventional devicebecause the blackout image data is temporarily stored in a memory.

SUMMARY OF THE INVENTION

It is an object of the present invention to provide a technique forsuppressing increase of a random noise in a process for removing a noisecaused by long exposure.

The present invention is now described.

(1) A noise reduction device of the present invention includes an imagestorage unit, a blackout image processing unit, and a noise processingunit.

The image storage unit captures image data obtained by imaging a fieldwith an image sensor and stores the image data therein.

The blackout image processing unit captures blackout image data obtainedby performing the imaging with the image sensor being shaded, andextracts a specific noise component of the blackout image data.

The noise processing unit reduces a noise in the image data based on thespecific noise component of the blackout image data.

(2) It is preferable that the blackout image processing unit extract avalue equal to or larger than a predetermined value from the blackoutimage data to use the value as the specific noise component.

(3) It is preferable that charging time of the blackout image dataduring imaging be shorter than charging time of the image data duringimaging.

(4) It is preferable that the blackout image processing unit include alevel selection unit and a variation suppressing unit.

The level selection unit selects, as a low-level pixel, a pixel having alow level that is equal to or smaller than a predetermined thresholdvalue from the blackout image data.

The variation suppressing unit suppresses a high spatial frequencycomponent for the selected low-level pixel to obtain the specific noisecomponent.

(5) It is preferable that the blackout image processing unit suppress ahigh spatial frequency component of the blackout image data to obtainthe specific noise component. The noise processing unit subtracts avalue corresponding to the specific noise component from the image datato reduce the noise in the image data.

(6) It is preferable that the blackout image processing unit performsmoothing for the blackout image data by using a nearby pixel for whicha maximum value is limited, to obtain the specific noise component.

(7) It is preferable that charging time of the blackout image dataduring imaging be shorter than charging time of the image data duringimaging. The noise processing unit amplifies the blackout image data tocompensate lowering of a level of a fixed pattern noise caused byshortening of the charging time of the blackout image data. The noiseprocessing unit subtracts the blackout image data after the compensationfrom the image data to reduce the noise in the image data.

(8) It is preferable that the blackout image processing unit remove anincrease in level caused by a dark current (a dark current offset) fromthe blackout image data to obtain the specific noise component.

(9) It is preferable that the blackout image processing unitdiscriminate, based on a signal level, the dark current offset from thefixed pattern noise in the blackout image data to obtain the specificnoise component containing the fixed pattern noise.

(10) It is preferable that the blackout image processing unit extract avalue equal to or larger than a predetermined value from the blackoutimage data as the specific noise component.

The noise processing unit includes a noise detection unit and a noisereduction unit. The noise detection unit detects, as a noise position, aposition at which the specific noise component exceeds a predeterminedthreshold value. The noise reduction unit applies the noise position tothe image data to specify a noise pixel corresponding to the noiseposition. The noise reduction unit replaces a value of the noise pixelwith a value corresponding to a nearby pixel that is located near thenoise pixel to achieve noise reduction.

(11) It is preferable that charging time of the blackout image dataduring imaging be shorter than charging time of the image data duringimaging. The noise detection unit sets the threshold value to be lowerin accordance with a shortening ratio of the charging time of theblackout image data. Thus, the noise detection unit estimates the noiseposition, at which the noise becomes visible when the charging time ofthe blackout image data is extended, from the blackout image data havingthe shortened charging time.

(12) It is preferable that charging time of the blackout image dataduring imaging be shorter than charging time of the image data duringimaging. The noise detection unit amplifies a signal level of theblackout image data in accordance with a shortening ratio of thecharging time of the blackout image data to imitate a noise that appearswhen the charging time of the blackout image data is extended. The noisedetection unit performs determination using the threshold value for theamplified blackout image data to estimate the noise position.

(13) It is preferable that the noise detection unit amplify the signallevel of the blackout image data after subtracting the dark currentoffset from the blackout image data.

(14) An electronic camera of the present invention includes: theaforementioned noise reduction device described in (1); an image sensor;a shading mechanism shading the image sensor; and a control unitcontrolling the image sensor to generate the image data of the field anddriving the shading mechanism to shade the image sensor and generate theblackout image data.

(15) A noise reduction program of the present invention makes a computeroperate as the image storage unit, the blackout image processing unit,and the noise processing unit that are described in (1).

(16) A noise reduction method of the present invention includes thesteps of: capturing image data obtained by imaging a field with an imagesensor and storing the image data; capturing blackout image dataobtained by performing the imaging with the image sensor being shadedand extracting a specific noise component of the blackout image data;and reducing a noise in the image data based on the specific noisecomponent of the blackout image data.

BRIEF DESCRIPTION OF THE DRAWINGS

The nature, principle, and utility of the invention will become moreapparent from the following detailed description when read inconjunction with the accompanying drawings in which like parts aredesignated by identical reference numbers, in which:

FIG. 1 is a block diagram showing the configuration of an electroniccamera 11 according to a first embodiment of the present invention;

FIG. 2 is a flowchart of a noise reduction process of the electroniccamera 11;

FIG. 3 is a block diagram showing the configuration of an electroniccamera 111 according to a second embodiment of the present invention;

FIG. 4 is a flowchart of a noise reduction process of the electroniccamera 111;

FIGS. 5A to 5D show how to process blackout image data;

FIG. 6 is a block diagram of an electronic camera 131 according to thethird embodiment of the present invention; and

FIG. 7 is a flowchart of a noise reduction process of the electroniccamera 131.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Hereinafter, embodiments of the invention will be described withreference to the accompanying drawings.

Embodiment 1 Configuration of Embodiment 1

FIG. 1 is a block diagram showing the configuration of an electroniccamera 11 according to a first embodiment of the present invention.

Referring to FIG. 1, a lens 12 is mounted onto the electronic camera 11.A shutter 13 and an image sensor 14 are arranged in an image space ofthe lens 12. The shutter 13 and the image sensor 14 are controlled by acontrol unit 11 a.

An image output signal of the image sensor 14 is subjected to adigitalizing process and the like in a signal processing unit 15 and isthen stored in an image memory 16 temporarily. The image memory 16 has astorage area for storing image data A that is data of a normally takenimage and a storage area for storing blackout image data B that is dataof a blackout image taken while the shutter 13 is closed.

A blackout image processing unit 20 processes the blackout image data B.The blackout image processing unit 20 includes the following components:

(1) a level selection unit 21 for determining a level of blackout imagedata B and selecting a pixel having a low level as a low-level pixel;

(2) a nearby pixel level limit unit 22 for reading out a nearby pixel ofthe low-level pixel and limiting the maximum value of a signal level ofthe read nearby pixel;

(3) a smoothing unit 23 for performing smoothing for the low-level pixelby using the nearby pixel for which the maximum value has been limited;and

(4) a gain and offset adjustment unit 24 for adjusting a gain and anoffset of the blackout image data in order to compensate shortening ofcharging time Tb of the blackout image data.

A common-mode reduction unit 17 subtracts the processed blackout imagedata B from the image data A pixel by pixel, thereby reducing a fixedpattern noise and a dark current offset in a common mode. The image dataafter the subtraction is subjected to compression and the like in animage processing unit 18, and is then recorded and stored in a memorycard 19.

[Operation in Embodiment 1]

FIG. 2 is a flowchart of a process for removing the fixed pattern noisein the electronic camera 11.

This process is now described with reference to steps in FIG. 2.

Step S1: The control unit 11 a opens the shutter 13 in response to arelease operation by a user and forms an image of a subject obtainedthrough the lens 12 on an imaging area of the image sensor 14. In thisstate, the control unit 11 a makes the image sensor 14 generate imagedata A having charging time Ta.

The image sensor 14 outputs the image data A in accordance with adriving pulse supplied from the control unit 11 a. The output image dataA is supplied to the image memory 16 through the signal processing unit15 and is temporarily stored in the image memory 16.

Step S2: The control unit 11 a determines charging time Tb for storingelectric charges of blackout image data B based on the charging time Taand the temperature. The charging time Tb is “a lower limit” of a rangein which the charging time Ta is approximately proportional tooccurrence (level) of the fixed pattern noise, and is obtained inadvance by way of experiment.

Immediately after the generation of the image data A, the control unit11 a closes the shutter 13. The control unit 11 a then makes the imagesensor 14 generate the blackout image data B having the charging time Tbwhile keeping a light-blocking state in which the closed shutter 13blocks light.

The image sensor 14 outputs the generated blackout image data B inaccordance with a driving pulse supplied from the control unit 11 a. Theoutput blackout image data B is supplied to the image memory 16 throughthe signal processing unit 15 and is temporarily stored in the imagememory 16.

Step S3: The level selection unit 21 reads out the blackout image data Bfrom the image memory 16 pixel by pixel, and selects a pixel having alevel that is equal to or smaller than a threshold value as a low-levelpixel.

It is preferable that the threshold value be determined in the followingmanner, for example. First, a lower limit of level variation of thefixed pattern noise and an upper limit of level variation of a randomnoise are experimentally obtained for data of a plurality of blackoutimages. Then, an intermediate value between the lower limit and theupper limit is obtained. The thus obtained intermediate value is used asthe threshold value in the selection of the low-level pixel.

Moreover, it is preferable that a plurality of threshold values beexperimentally determined for a plurality of different conditions inwhich imaging sensitivity and/or temperature are/is different,respectively. In this case, it is also preferable that the electroniccamera 11 detect a condition of the sensitivity and/or the temperatureduring imaging and select one of the threshold values in accordance withthe detected condition.

As a result of the above level selection, a position at which a noise ofa low level (that is probably a random noise) occurs is extracted as thelow-level pixel, except for a position at which the fixed pattern noiseoccurs.

Due to the above level selection, it is possible to reduce the number ofpixels that are subjected to smoothing that will be described later.Thus, the entire processing cost and the entire processing time can bereduced.

A pixel having a level that is smaller than a predetermined lower limitvalue may be omitted from the selection of the low-level pixel. This isbecause an extremely low level means nothing even if that level issubtracted from the image data. The predetermined lower limit value inthis case can be determined by experimentally confirming that the randomnoise in the image data A does not increase after the noise reduction.

Step S4: The nearby pixel level limit unit 22 refers to nearby pixelsthat are located near the selected low-level pixel in the blackout imagedata B. A range in which the nearby pixels are referred to can be set tobe equal to or larger than a period of the random noise. For example,that range can be a range of 3×3 pixels.

The nearby pixel level limit unit 22 limits the maximum value of eachnearby pixel. This limitation can remove the fixed pattern noise, whichlocally sticks out, from the nearby pixel in a simple manner.

For example, this limitation may be achieved by replacing a large valueof a nearby pixel with a value of another nearby pixel that is equal toor smaller than that large value.

Alternatively, a value of each nearby pixel may be limited to be equalto or smeller than a predetermined maximum value (e.g., the thresholdvalue used in the selection of the low-level pixel in Step S3), forexample.

Alternatively, a nearby pixel having a level that exceeds apredetermined maximum value (e.g., the threshold value used in theselection of the low-level pixel in Step S3) may be removed from a rangethat is referred to in a smoothing process performed in Step S5described later, for example.

Alternatively, the maximum value of the nearby pixel may be limited insuch a manner that a difference between the low-level pixel and thenearby pixel falls within a certain value.

Step S5: The smoothing unit 23 performs weighted addition of the nearbypixel for which the maximum value is limited in the nearby pixel levellimit unit 22 and the low-level pixel, and performs a digital filteringprocess. For example, all weights may be one.

Instead of the weighted addition, a median value may be calculated fromthe nearby pixels and the low-level pixel, and the low-level pixel maybe replaced with the median value.

As a result of the smoothing, a high spatial frequency component, i.e.,a random noise of the low-level pixel is suppressed. Thus, a value ofthe low-level pixel after the smoothing represents a dark current offsetin a low frequency region precisely.

Step S6: The gain and offset adjustment unit 24 amplifies the signallevel of the blackout image data B for which the smoothing unit 23 hascompleted the smoothing to (Ta/Tb) times the level.

In the case where a relationship between the charging time and the fixedpattern noise is nonlinear, it is preferable to obtain a function f anda coefficient α for compensating the nonlinear relationship in advanceby way of experiment and to amplify the signal level of the blackoutimage data B to f(Ta/Tb) times or (Ta/Tb)·α times the level.

Step S7: The gain and offset adjustment unit 24 then performs offsetadjustment for the signal level of the blackout image data B in such amanner that a signal level of a dark current offset of the “amplifiedblackout image data B” and that of the “image data A” are approximatelycoincident with each other. For example, the dark current offset of theimage data A is calculated by obtaining a difference between a zerolevel and an output level of an OB region (shaded region outside aneffective area) of the image sensor.

The blackout image data B processed in the aforementioned manner isstored again in the image memory 16.

Step S8: After the aforementioned processing of the blackout image dataB, the common-mode reduction unit 17 subtracts the blackout image data Bfrom the image data A pixel by pixel. This subtraction removes the fixedpattern noise and the dark current offset from the image data A in acommon mode.Step S9: The image data A processed by the common-mode reduction unit 17is supplied to the image processing unit 18. The image processing unit18 performs processes of white balance adjustment, color interpolation,image compression, and the like for the image data A. After thoseprocesses, the image data A is recorded and stored in the memory card19.

In the first embodiment, the level of the dark current offset of theimage data A and that of the blackout image data B are madeapproximately the same and thereafter the blackout image data B issubtracted from the image data A. However, the present invention is notlimited thereto. For example, subtraction of the dark current offset maybe performed for each of the image data A and the blackout image data B,and thereafter the blackout image data B may be subtracted from theimage data A.

[Principle of Embodiment 1]

Main features of the first embodiment are now listed, and the principleof the first embodiment is described for each feature.

(Feature 1)

In the first embodiment, data of a blackout image that is taken whilethe shutter is closed is taken in. The blackout image data does notcontain intrinsic information of an image, but mainly contains thefollowing three noises.

(1) Fixed pattern noise(2) Random noise(3) Dark current offset

The fixed pattern noise is a noise causing a fixed pattern to appear onan image and increases in approximately proportion to charging time.

The random noise appears at random on an image. An offset of the randomnoise corresponds to the dark current offset and raises a black level ofimage data in accordance with accumulation of a dark current or thelike. The dark current offset has a lower spatial frequency component,as compared with the random noise. A level of the dark current offsetincreases with the charging time. However, the increase in level of thedark current offset is remarkably smaller than the increase in level ofthe fixed pattern noise.

Therefore, with the increase of the charging time, the signal level ofthe fixed pattern noise moves farther away from signal levels of othernoises. Thus, a threshold value is set between the signal level of thefixed patter noise and the signal levels of the other noises. The use ofsuch a threshold value makes it possible to discriminate “the fixedpattern noise having the level that goes up locally” from “the randomnoise and the dark current offset that have uniform variation over theimage and have low levels”.

Accordingly, in the first embodiment, a low-level pixel having a levelthat is equal to or smaller than the predetermined threshold value isselected from the blackout image data first. The thus selected low-levelpixel mainly contains the random noise and the dark current offset.

The level of the random noise varies at random pixel by pixel.Therefore, the random noise is a high spatial frequency component. Thus,in the first embodiment, the high spatial frequency component in animage space (screen) is suppressed for the low-level pixel. Thissuppression removes the random noise in a high frequency regionpreferentially. As a result of the suppression, a signal value of thelow-level pixel represents the dark current offset in a low frequencyregion highly precisely.

On the other hand, a pixel that is not selected as the low-level pixel(hereinafter, simply referred to as a “high-level pixel”) is notsubjected to the process for suppressing the high spatial frequencycomponent. Thus, a signal value of the high-level pixel mainlyrepresents the fixed pattern noise.

In the first embodiment, the blackout image data processed in theaforementioned manner is subtracted from data of an image that is takenin a normal manner. Since the random noise in a region of low-levelpixels has been already removed from the blackout image data, a problemthat the random noise is added to the image data in a reversed mode doesnot occur, unlike the conventional technique. Thus, the random noisehardly increases in the image data after the subtraction.

Moreover, the fixed pattern noise that is represented by the high-levelpixel is subtracted from the image data without being affected by thesuppression of the high spatial frequency component. Thus, the fixedpattern noise caused by long exposure can be precisely removed.

(Feature 2)

In the first embodiment, a pixel having a level in a range from apredetermined lower limit value to the threshold value is selected asthe low-level pixel. For a pixel having a level that is smaller than thepredetermined lower limit value, a level of the random noise is smallbecause the signal level is small. Therefore, even if such a pixel isomitted from the processing of the random noise, increase of the randomnoise in a finally obtained image can be ignored. In addition, thenumber of the low-level pixels is reduced due to the selection of thelow-level pixels. Thus, the processing cost of the smoothing can also bereduced.

(Feature 3)

In the first embodiment, the smoothing using nearby pixels is performedfor the low-level pixel, thereby suppressing the high spatial frequencycomponent of the low-level pixel. This smoothing limits the maximumvalue of the nearby pixel to simply remove the fixed pattern noise ofthe nearby pixel.

Therefore, it is possible to prevent a situation where the smoothingcauses the fixed pattern noise of the nearby pixel to be mixed into thelow-level pixel from occurring.

Accordingly, the low-level pixel after the smoothing is hardly affectedby the fixed pattern noise, but represents a value of the dark currentoffset highly precisely.

The thus processed blackout image data is then subtracted from the imagedata. As a result, the dark current offset in the image data can beprecisely canceled, and the image data in which the black level isreproduced faithfully can be obtained.

(Feature 4)

In the first embodiment, the charging time of the blackout image dataduring imaging is shortened. In order to compensate the shortening ofthe charging time, the blackout image data is amplified. In thatamplification, the random noise in the blackout image data increases inproportion to the amplification. Therefore, in the case where theshortening of the charging time of the blackout image data is performedin the conventional technique without careful consideration, the randomnoise in the image data remarkably increases.

On the contrary, the random noise in the blackout image data is reducedcarefully in the first embodiment. Thus, even when the amplification ofthe blackout image data is performed, the random noise in the blackoutimage data can be kept to be small. Therefore, even if the charging timeof the blackout image data is shortened, the random noise in the finallyobtained image hardly increases.

This enables further shortening of the charging time of the blackoutimage data in the electronic camera. Consequently, the electronic cameracan be set free from a process for imaging the blackout image morequickly, and the usability of the electronic camera can be improved.

[Advantages of Embodiment 1 and Others]

Next, advantages obtained by combining the above features and the likeare described.

As described above, the low-level pixel is selected from the blackoutimage data B and is then subjected to smoothing in the first embodiment.Therefore, the random noise in the low-level pixel of the blackout imagedata B can be strongly suppressed.

Moreover, the maximum value of the nearby pixel that is referred to inthe smoothing is limited in the first embodiment. Thus, it is possibleto prevent a situation where the smoothing causes the fixed patternnoise to be mixed into the low-level pixel from occurring.

Those processes performed for the low-level pixel can remove the randomnoise in the low-level pixel. That is, the thus processed low-levelpixel represents the dark current offset precisely. On the other hand,the level of the fixed pattern noise, which goes up locally, is higherthan that of the random noise. Therefore, a pixel other than thelow-level pixel (i.e., high-level pixel) represents the fixed patternnoise faithfully.

The thus processed blackout image data B is subtracted from the imagedata A, thereby the fixed pattern noise and the dark current offset areprecisely removed from the image data A after the subtraction. On theother hand, the random noise hardly increases in the image data A afterthe subtraction, because the random noise in the blackout image data Bis strongly removed. As a result, a good-quality image containing fewnoises can be finally obtained.

Moreover, the low-level pixel is selected in the first embodiment. Inaddition, a pixel having an extremely low level is omitted from theselection of the low-level pixel. Thus, the number of pixels that aresubjected to the smoothing can be reduced. This can efficiently reducethe processing cost of noise reduction.

Furthermore, in the first embodiment the charging time Tb of theblackout image data is shortened within a range in which the chargingtime is approximately proportional to the signal level of the fixedpattern noise. Thus, a time period during which the electronic camera 11is occupied by imaging of the blackout image data can be shortened. Thisimproves the usability of the electronic camera 11.

Next, another embodiment of the present invention is described.

Embodiment 2 Configuration of Embodiment 2

FIG. 3 is a block diagram showing the configuration of an electroniccamera 111 according to a second embodiment of the present invention.

A lens 112 is mounted on the electronic camera 111. A shutter 113 and animage sensor 114 are arranged in an image space of the lens 112. Theshutter 113 and the image sensor 114 are controlled by a control unit115.

Image data output from the image sensor 114 is input to an image datastorage circuit 117 through a dark current offset circuit 116, and isrecorded in the image data storage circuit 117.

Blackout image data (described later) output from the image sensor 114is supplied to an amplification unit 118 through the dark current offsetcircuit 116. A gain setting circuit 122 adjusts a gain of theamplification unit 118. A white-spot-on-blackout-image detection circuit119 performs determination using a threshold value for an output of theamplification unit 118 to extract a fixed pattern noise that exceeds thethreshold value. The threshold value of the white-spot-on-blackout-imagedetection circuit 119 is adjusted by a threshold value setting circuit132. An address output circuit 120 converts a position of the extractednoise into a coordinate on a display screen (address information) andoutputs the coordinate. An address storage circuit 121 temporarilystores the coordinate output from the address output circuit 120. Awhite-spot-on-blackout-image correction circuit 123 locally performsnoise reduction for the image data in the image data storage circuit 117in accordance with the noise position acquired from the address storagecircuit 121. A card interface 124 records and stores the image data, thenoise position, and the like in a memory card 125.

[Noise Reduction Operation]

FIG. 4 is a flowchart of a noise reduction process in the electroniccamera 111.

FIGS. 5A to 5D show how to process the blackout image data.

This noise reduction process is now described, referring to steps inFIG. 4.

Step S101: The control unit 115 opens the shutter 113 in response to arelease operation by a user, thereby forming a subject image takenthrough the lens 112 on an imaging area of the image sensor 114. In thisstate, the control unit 115 makes the image sensor 114 performphotoelectric conversion and charge storage, thereby generating imagedata having charging time Ta. The image sensor 114 outputs that imagedata in an order of scanning on the display screen.Step S102: The dark current offset circuit 116 detects increase of asignal level of that image data caused by a dark current from values ofOB pixels (shaded dummy pixels provided in a surrounding area of aneffective area) contained in that image data, thereby obtaining a darkcurrent offset. The dark current offset circuit 116 subtracts the darkcurrent offset from the image data to suppress looming of a black levelcaused by long exposure. The thus processed image data is temporarilystored in the image data storage circuit 117.Step S103: The control unit 115 determines based on the charging time Tawhether or not a noise caused by long exposure is to be removed.

In the case where the charging time Ta is shorter than a predeterminedtime and it is determined that the fixed pattern noise can be ignored, aroutine of a normal imaging process is executed.

On the other hand, in the case where the charging time Ta is longer thanthe predetermined time and it is determined that the fixed pattern noisecannot be ignored, the operation is moved to Step S104 and subsequentsteps in order to achieve noise reduction.

Step S104: The control unit 115 determines charging time Tb based on thecharging time Ta and the temperature. The charging time Tb is “a lowerlimit” of a range in which the charging time Ta is approximatelyproportional to occurrence of the fixed pattern noise, and is obtainedby way of experiment.

The control unit 115 then makes the image sensor 114 store electriccharges while closing the shutter 113 and keeping a state where light isblocked by the closed shutter 113, thereby generating blackout imagedata of the charging time Tb.

FIG. 5A shows the blackout image data generated by the image sensor 114in that manner.

Step S105: The dark current offset circuit 116 obtains the dark currentoffset from values of OB pixels of the blackout image data, andsubtracts the thus obtained dark current offset from the blackout imagedata.

FIG. 5B shows the blackout image data from which the dark current offsethas been subtracted.

Step S106: The gain setting circuit 122 acquires the charging times Taand Tb from the control unit 115, determines a gain based on thefollowing expression, and sets the determined gain in the amplificationunit 118.

Gain=(Ta/Tb)·α

A constant of proportion α is a default gain of thewhite-spot-on-blackout-image detection circuit 119.

The amplification unit 118 amplifies the blackout image data inaccordance with the thus set gain.

FIG. 5C shows the amplified blackout image data.

Step S107: The threshold value setting circuit 132 determines athreshold value RN based on the charging times Ta and Tb and thetemperature. The threshold value RN is an upper limit of level variationof a random noise appearing in blackout image data if charging time ofthat blackout image data is the charging time Ta. The threshold value RNis experimentally obtained.

The random noise appears uniformly in a display screen. On the otherhand, the fixed pattern noise like a white spot appears only in aspecific pixel in the display screen. From this feature, a last signallevel in the case where a predetermined number (e.g., 100) of signallevels are extracted from histogram of signal levels of the blackoutimage data in descending order of signal level may be determined as thethreshold value RN.

The threshold value setting circuit 132 sets the thus determinedthreshold value RN in the white-spot-on-blackout-image detection circuit119. The white-spot-on-blackout-image detection circuit 119 performsdetermination using the thus set threshold value RN for the amplifiedblackout image data to extract a noise exceeding the threshold value RN.

The address output circuit 120 converts the position of the extractednoise into address information indicating a coordinate on the displayscreen, and outputs the address information. The address information istemporarily stored in the address storage circuit 121.

Step S108: If the electronic camera 111 is set in a RAW recording mode,the operation is moved to Step S109. Otherwise, the operation is movedto Step S110.Step S109: The card interface 124 records the image data in the imagedata storage circuit 117 (i.e., RAW data) and the information indicatingthe noise position in the address storage circuit 121 into the memorycard 125 so that the image data and the information of the noiseposition are stored to be associated with each other.

It is preferable that data obtained by compressing the coordinate valueof the noise position or data obtained by compressing map informationindicating the noise position (i.e., mask image) be stored in apredetermined data area within the RAW data.

For the RAW data, it is possible to perform noise reduction based on thenoise position in a post-process (i.e., a so-called development process)in a computer.

The electronic camera 111 completes a process for recording the RAW datain this manner.

Step S110: The white-spot-on-blackout-image correction circuit 123 readsout the address information indicating the noise position from theaddress storage circuit 121. The white-spot-on-blackout-image correctioncircuit 123 then reads out values of nearby pixels that are located nearthe noise position from the image data in the image data storage circuit117 in accordance with the read address information. Thewhite-spot-on-blackout-image correction circuit 123 performs a noisereduction operation (e.g., a weighted average operation or a medianoperation) for the values of the nearby pixels, thereby generating pixelvalues after the noise reduction. In a position of high colorsaturation, it is preferable that the noise reduction operation beperformed for nearby pixels of the same color. On the other hand, in aposition having low color saturation, it is preferable that the noisereduction operation be performed for both the nearby pixels of the samecolor and nearby pixels of a different color. Moreover, it is preferableto detect a direction in which pixels resemble each other and to performthe noise reduction operation that improves a contribution ratio of thenearby pixel arranged in that direction.

The white-spot-on-blackout-image correction circuit 123 replaces thepixel value after the noise reduction with a pixel value of the noiseposition.

The aforementioned processes are performed for each noise positionrecorded in the address storage circuit 121. As a result, the fixedpattern noise is removed from the image data stored in the image datastorage circuit 117.

Step S111: The electronic camera 111 performs color interpolation, colorcoordinate transformation, and the like process for the image data afterthe noise reduction. Then, the card interface 124 records and stores theprocessed image data in the memory card 125.

[Principle of Embodiment 2]

Main features of the second embodiment are now listed, and the principleof the present embodiment is described for each feature.

(Feature 1)

The blackout image data of the second embodiment also contains thefollowing three noises mainly.

(1) Fixed pattern noise(2) Random noise(3) Dark current offset

The dark current offset is close to a direct-current component and canbe estimated in a simple manner. For example, the dark current offsetcan be roughly estimated by obtaining an average signal level of theblackout image data. Alternatively, the dark current offset can beestimated from a condition of the temperature of the image sensor andthe charging time, for example. Alternatively, a dummy light-receivingdevice may be provided in the image sensor to estimate the dark currentoffset from an output of the dummy light-receiving device.

The noise reduction device removes the dark current offset that can beestimated in the aforementioned manner from the blackout image data. Asa result, the fixed pattern noise and the random noise mainly remain inthe blackout image data.

The fixed pattern noise increases in approximately proportion to thecharging time.

On the other hand, the random noise appears at random and is variable.Thus, an average level of the random noise is not in proportion directlyto the charging time (in a case of a complete random noise, for example,the average level of the random noise is in proportion to the squareroot of the charging time).

Accordingly, with the increase of the charging time, the signal level ofthe fixed pattern noise moves farther away from that of the randomnoise. Therefore, it is possible to discriminate the “fixed patternnoise that largely appears locally” from the “random noise that appearswith a uniform variation over the display screen” by using anappropriate threshold value set between the signal level of the fixedpattern noise and that of the random noise.

Due to that discrimination, a position of occurrence of the fixedpattern noise (i.e., noise position) can be precisely detected in thesecond embodiment.

Moreover, in the second embodiment, for the normally taken image data,noise reduction is performed locally at the thus obtained noiseposition. Thus, a situation where the random noise is added to the imagedata can be prevented from occurring, unlike the conventional technique.Therefore, it is possible to obtain a good-quality result of the noisereduction.

(Feature 2)

In the second embodiment, the charging time of the blackout image datais shortened. In general, the fixed pattern noise increasesapproximately in proportion to the charging time. Thus, the fixedpattern noise in the blackout image data becomes smaller in proportionto a shortening ratio of the charging time of the blackout image data.The lowering of level of the fixed pattern noise is compensated byamplifying the blackout image data in the second embodiment. As aresult, it is possible to precisely detect the noise position of thefixed pattern noise in the blackout image data even if that blackoutimage data is generated with a shortened charging time.

Since the charging time of the blackout image data can be flexiblyshortened in the aforementioned manner, a time period during which theelectronic camera cannot perform imaging can be shortened. Therefore, anelectronic camera that has improved usability can be achieved.

(Feature 3)

In the second embodiment, the signal level of the blackout image data isamplified after the dark current offset is subtracted from the signallevel of the blackout image data. In this process, the level of theblackout image data before the amplification can be lowered bysubtracting the dark current offset from the blackout image data inadvance.

Therefore, it is less likely that the signal level of the blackout imagedata reaches a saturation level due to the amplification, and a leveldifference between the random noise and the fixed pattern noise can beclearly kept after the amplification. Consequently, it is possible toprecisely detect the noise position of the fixed pattern noise withoutbeing affected by the saturation of the signal level.

[Advantages of Embodiment 2 and Others]

Advantages achieved by combining the above features and the like are nowdescribed.

As described above, the dark current offset is removed from the blackoutimage data in the second embodiment. Thus, the fixed pattern noise andthe random noise mainly remain in the blackout image data, as shown inFIG. 5B. Then, the determination using the threshold value is performedas shown in FIG. 5C, thereby separating the random noise that fallswithin a uniform range of variation from the fixed pattern noise thatappears locally and detecting the fixed pattern noise.

Especially, when using histogram analysis, it is possible to separatethe random noise and the fixed pattern noise from each other in astatistically precise manner. Thus, the fixed pattern noise can bedetected even if the level of the fixed pattern noise is small.

Moreover, a condition for varying the random noise, such as thetemperature (the temperature of the image sensor, the environmentaltemperature, or the like) or the imaging sensitivity is detected first,and the threshold value for separating the random noise from the fixedpattern noise is changed in accordance with the detected condition.Thus, the fixed pattern noise can be precisely detected.

By so doing, the fixed pattern noise in the image data can be preciselydetected and removed even if the level of that fixed pattern noise issmall.

In addition, a waiting time that is required for imaging of the blackoutimage data can be shortened by shortening the charging time Tb of theblackout image data in the second embodiment. The shortening of thecharging time Tb can also be achieved because the precise detection ofthe fixed pattern noise is possible, as described above.

In the second embodiment, when a RAW recording mode is set, the detectednoise position and RAW data are associated with each other and recorded.Thus, noise reduction using the noise position can be performed in apost-process for processing the RAW data.

Furthermore, the data size of the noise position is remarkably smallerthan that of the blackout image data. Thus, the recording size of theRAW data is hardly increased even if the information of the noiseposition is added to the RAW data. Therefore, as compared with a case inwhich the blackout image data is recorded together with the RAW data,the number of images that can be recorded in a recording medium can beincreased.

In the second embodiment, the blackout image data is sequentiallyprocessed in a pipeline system, to detect the noise position. Therefore,a memory space for temporarily storing the blackout image data is notrequired. This can save memory usage.

Next, another embodiment is described.

Embodiment 3

FIG. 6 is a block diagram showing the configuration of an electroniccamera 131 according to a third embodiment of the present invention.

The configuration of the electronic camera 131 is characterized in thatthe gain of the amplification unit 118 is fixed to a default gain α andthe threshold value of the white-spot-on-blackout-image detectioncircuit 119 is positively increased or decreased by using the thresholdvalue setting circuit 132. Except for that, the structure of theelectronic camera 131 is the same as that in the second embodiment(shown in FIG. 3) and the detailed description is omitted here.

FIG. 7 is a flowchart of a noise reduction process in the electroniccamera 131.

This noise reduction process is described, referring to steps in FIG. 7.

Steps S121 to S125: These steps are the same as Steps S101 to S105 inthe second embodiment.Step S126: The threshold value setting circuit 132 acquires the chargingtimes Ta and Tb from the control unit 115, obtains a threshold valuethat is proportional to the shortening ratio of the charging time inaccordance with the following expression, and sets the obtainedthreshold value in the dark white point detection circuit 119.

Threshold value=RN(Ta/Tb)β

A constant of proportion β is a correction coefficient that isexperimentally determined based on subjective estimation of a noisereduction effect. A constant of proportion RN is the default thresholdvalue.

Step S127: The white-spot-on-blackout-image detection circuit 119performs determination using the thus set threshold value for theblackout image data to extract a noise exceeding the threshold value.The position of the extracted noise is converted into addressinformation in the address output circuit 120. The address informationis temporarily stored in the address storage circuit 121.Step S128 to S131: These steps are the same as Steps S108 to S111 in thesecond embodiment.

The aforementioned operation can achieve effects that are similar tothose in the second embodiment.

In the third embodiment, the charging time of the blackout image data isalso shortened. The signal level of the fixed pattern noise is loweredto be approximately proportional to the shortening ratio of the chargingtime. In order to achieve this, the threshold value is lowered to followthe lowering of the signal level in the third embodiment. As a result,even in the blackout image data for which the charging time has beenshortened, the noise position of the fixed pattern noise can beprecisely detected.

Since the charging time of the blackout image data can be flexiblyshortened in the aforementioned manner, a time period during which theelectronic camera 131 cannot perform imaging can be shortened. Thus, theusability of the electronic camera can be improved.

(Supplementation)

A case where noise reduction is performed in the electronic camera isdescribed in the above embodiments. However, the present invention isnot limited thereto. For example, a program for performing the noisereduction process shown in FIG. 2, 4 or 7 may be created. In this case,a computer can be operated as the noise reduction device of the presentinvention by running that noise reduction program on the computer.

Moreover, in an image processing server (e.g., an image album server) onthe Internet, the noise reduction method described above may be providedas one type of service for image data and blackout image data that aretransmitted from a user.

In the second and third embodiments described above, the determinationusing the threshold value is performed for detecting the noise position,after the dark current offset is subtracted from the blackout imagedata. However, the present invention is not limited thereto. Forexample, the threshold value may be increased by a value correspondingto the dark current offset, instead of subtracting the dark currentoffset from the blackout image data.

In the second embodiment described above, the amplification is performedafter the dark current offset is subtracted from the blackout imagedata. Thus, a situation where a white spot noise is saturated due to theamplification can be prevented from occurring, and the precise detectionof the noise position can be achieved. However, the present invention isnot limited thereto. If a nonlinear phenomenon such as saturation doesnot occur, the blackout image data may be amplified first, and then thedark current offset that is amplified may be subtracted from theamplified blackout image data.

The above embodiments can be implemented by digital signal processing oranalog signal processing.

The invention may be embodied in other specific forms without departingfrom the spirit or essential characteristics thereof. The presentembodiments are therefore to be considered in all respects asillustrative and not restrictive, the scope of the invention beingindicated by the appended claims rather than by the foregoingdescription and all changes which come within the meaning and range ofequivalency of the claims are therefore intended to be embraced therein.

1. A noise reduction device comprising: an image storage unit capturingimage data obtained by imaging a field with an image sensor and storingthe image data therein; a blackout image processing unit capturingblackout image data obtained by performing the imaging with said imagesensor being shaded, and extracting a specific noise component of saidblackout image data; and a noise processing unit reducing a noise insaid image data based on said specific noise component of said blackoutimage data.
 2. The noise reduction device according to claim 1, whereinsaid blackout image processing unit extracts a value equal to or largerthan a predetermined value from said blackout image data to use thevalue as said specific noise component.
 3. The noise reduction deviceaccording to claim 1, wherein charging time of said blackout image dataduring imaging is shorter than charging time of said image data duringimaging.
 4. The noise reduction device according to claim 1, whereinsaid blackout image processing unit removes an increase in level causedby a dark current (a dark current offset) from said blackout image datato obtain said specific noise component.
 5. The noise reduction deviceaccording to claim 1, wherein said blackout image processing unitdiscriminates, based on a signal level, the dark current offset from afixed pattern noise in said blackout image data to obtain said specificnoise component containing said fixed pattern noise.
 6. The noisereduction device according to claim 1, wherein: said blackout imageprocessing unit extracts a value equal to or larger than a predeterminedvalue from said blackout image data as said specific noise component;and said noise processing unit comprises a noise detection unitdetecting a noise position at which said specific noise componentexceeds a predetermined threshold value, and a noise reduction unitreplacing a value of a noise pixel of said image data corresponding tosaid noise position with a value corresponding to a nearby pixel of saidnoise pixel to achieve noise reduction.
 7. The noise reduction deviceaccording to claim 6, wherein: charging time of said blackout image dataduring imaging is shorter than charging time of said image data duringimaging; and said noise detection unit sets said threshold value to belower in accordance with a shortening ratio of said charging time of theblackout image data to estimate said noise position, at which the noisebecomes visible when said charging time of the blackout image data isextended, from said blackout image data having the shortened chargingtime.
 8. The noise reduction device according to claim 6, wherein:charging time of said blackout image data during imaging is shorter thancharging time of said image data during imaging; and the noise detectionunit amplifies a signal level of said blackout image data in accordancewith a shortening ratio of said charging time of the blackout image datato imitate a noise that appears when said charging time of the blackoutimage data is extended, and performs determination using the thresholdvalue for the amplified blackout image data to estimate said noiseposition.
 9. The noise reduction device according to claim 6, whereinsaid noise detection unit amplifies the signal level of said blackoutimage data after subtracting a dark current offset from said blackoutimage data.
 10. An electronic camera comprising: the noise reductiondevice according to claim 1; an image sensor; a shading mechanismshading said image sensor; and a control unit controlling said imagesensor to generate image data of a field and driving said shadingmechanism to shade said image sensor and generate blackout image data.11. A noise reduction program making a computer operate as said imagestorage unit, said blackout image processing unit, and said noiseprocessing unit according to claim
 1. 12. A noise reduction methodcomprising the steps of: capturing image data obtained by imaging afield with an image sensor and storing the image data; capturingblackout image data obtained by performing the imaging with said imagesensor being shaded, and extracting a specific noise component of saidblackout image data; and reducing a noise in said image data based onsaid specific noise component of said blackout image data.